/* ==========================================================================
   后台管理界面样式 - Apple风格
   ========================================================================== */

/* 基础重置和变量 */
:root {
    /* 主色调 */
    --primary-color: #007AFF;
    --primary-light: #E5F2FF;
    --primary-dark: #0056CC;
    --secondary-color: #5856D6;
    --success-color: #28A745;
    --warning-color: #FF9500;
    --danger-color: #FF3B30;
    --info-color: #17A2B8;
    
    /* 中性色 */
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --text-tertiary: #D2D2D7;
    --text-light: #FFFFFF;
    
    /* 背景色 */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F5F7;
    --bg-tertiary: #E5E5EA;
    --bg-dark: #1D1D1F;
    --bg-sidebar: #FAFAFA;
    
    /* 玻璃效果 */
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    
    /* 阴影 */
    --shadow-small: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-large: 0 8px 24px rgba(0, 0, 0, 0.2);
    
    /* 边距和大小 */
    --radius-small: 6px;
    --radius-medium: 10px;
    --radius-large: 14px;
    --radius-xl: 18px;
    
    /* 动画 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* 布局 */
    --sidebar-width: 260px;
    --header-height: 70px;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

body.admin-page {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    min-height: 100vh;
}

/* ==========================================================================
   侧边栏
   ========================================================================== */

.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--bg-tertiary);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 1000;
    box-shadow: var(--shadow-medium);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--bg-tertiary);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin: 0.25rem 0;
    padding: 0 1rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-medium);
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
    font-weight: 500;
}

.sidebar-nav a:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    transform: translateX(4px);
}

.sidebar-nav li.active a {
    background: var(--primary-color);
    color: var(--text-light);
    box-shadow: var(--shadow-small);
}

.sidebar-nav i {
    font-size: 1.1rem;
    width: 20px;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.user-info i {
    font-size: 1.25rem;
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-medium);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.logout-btn:hover {
    background: var(--danger-color);
    color: var(--text-light);
    transform: scale(1.05);
}

/* ==========================================================================
   主要内容区域
   ========================================================================== */

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 1.5rem;
    min-height: 100vh;
}

.content-header {
    background: var(--bg-primary);
    border-radius: var(--radius-large);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-small);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-left p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.datetime {
    text-align: right;
    color: var(--text-secondary);
}

.datetime .time {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.datetime .date {
    font-size: 0.875rem;
}

/* ==========================================================================
   内容区域
   ========================================================================== */

.content-section {
    margin-bottom: 2rem;
}

.card {
    background: var(--bg-primary);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-small);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--bg-tertiary);
    background: var(--bg-secondary);
}

.card-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-header p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.card-body {
    padding: 2rem;
}

/* 统计卡片 */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stats-cards .card {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-fast);
}

.stats-cards .card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
}

.card-icon i {
    font-size: 1.5rem;
}

.card-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.card-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* 文本颜色 */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-success { color: var(--success-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-info { color: var(--info-color) !important; }
.text-light { color: var(--text-light) !important; }
.text-muted { color: var(--text-tertiary) !important; }

/* ==========================================================================
   表格样式
   ========================================================================== */

.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--bg-tertiary);
    vertical-align: middle;
}

.table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    color: var(--text-primary);
}

/* 表格图标优化 */
.table td:nth-child(2) {
    text-align: center;
    width: 60px;
}

.table td:nth-child(2) i {
    font-size: 1.2rem;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--primary-light);
    border-radius: var(--radius-small);
    transition: all var(--transition-fast);
}

.table td:nth-child(2) img {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-small);
    object-fit: cover;
    border: 2px solid var(--bg-tertiary);
    transition: all var(--transition-fast);
}

.table tbody tr {
    transition: var(--transition-fast);
}

.table tbody tr:hover {
    background: var(--bg-secondary);
}

.table tbody tr:hover td:nth-child(2) i {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.table tbody tr:hover td:nth-child(2) img {
    transform: scale(1.1);
    border-color: var(--primary-color);
}

/* 徽章 */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: var(--radius-small);
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-info {
    background: var(--info-color);
    color: white;
}

.tag-badge {
    background: var(--secondary-color);
    color: white;
    font-size: 0.7rem;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

.tag-count {
    background: var(--text-tertiary);
    color: var(--text-primary);
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-small);
    cursor: help;
}

/* 标签选择器样式 */
.tag-selector {
    position: relative;
    width: 100%;
}

.selected-tags {
    min-height: 38px;
    padding: 0.5rem;
    border: 1px solid var(--bg-tertiary);
    border-radius: var(--radius-medium);
    background: var(--bg-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-fast);
}

.selected-tags:hover {
    border-color: var(--primary-color);
}

.selected-tags .placeholder {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.selected-tags .dropdown-arrow {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.tag-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--bg-tertiary);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-medium);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.tag-dropdown.show {
    display: block;
}

.tag-loading,
.no-tags {
    padding: 1rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.tag-loading i {
    margin-right: 0.5rem;
}

.no-tags i {
    margin-right: 0.5rem;
}

.tag-list {
    padding: 0.5rem 0;
}

.tag-option {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.tag-option:hover {
    background: var(--bg-secondary);
}

.tag-option input[type="checkbox"] {
    margin-right: 0.5rem;
}

.tag-option .tag-name {
    flex: 1;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.tag-option .tag-category {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

.selected-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-small);
    font-size: 0.75rem;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

.selected-tag .remove-tag {
    cursor: pointer;
    font-size: 0.75rem;
    opacity: 0.8;
}

.selected-tag .remove-tag:hover {
    opacity: 1;
}

/* ==========================================================================
   按钮样式
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: var(--radius-medium);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-fast);
    line-height: 1;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-small);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background: #0051D0;
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: #D1D1D6;
}

.btn-success {
    background: var(--success-color);
    color: var(--text-light);
}

.btn-warning {
    background: var(--warning-color);
    color: var(--text-light);
}

.btn-danger {
    background: var(--danger-color);
    color: var(--text-light);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

.btn-outline-danger {
    background: transparent;
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}

.btn-outline-danger:hover {
    background: var(--danger-color);
    color: var(--text-light);
}

.btn-group,
.category-actions {
    /* width: max-content; */
}

/* ==========================================================================
   表单样式
   ========================================================================== */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--bg-tertiary);
    border-radius: var(--radius-medium);
    font-size: 0.875rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.form-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.icon-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    width: auto;
}

/* 栅格系统 */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 0.75rem;
}

.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 0.75rem;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 0.75rem;
}

.col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding: 0 0.75rem;
}

.col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 0.75rem;
}

/* ==========================================================================
   模态框样式
   ========================================================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-large);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.modal-lg {
    max-width: 800px;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--bg-tertiary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-small);
    transition: var(--transition-fast);
}

.close-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--bg-tertiary);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* ==========================================================================
   消息提示
   ========================================================================== */

.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-medium);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.alert-danger {
    background: rgba(255, 59, 48, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(255, 59, 48, 0.2);
}

.alert i {
    font-size: 1.125rem;
}

/* ==========================================================================
   空状态
   ========================================================================== */

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-tertiary);
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   动画
   ========================================================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   响应式设计
   ========================================================================== */

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .table-responsive {
        font-size: 0.75rem;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .col-md-6,
    .col-md-4,
    .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 0.75rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .content-header {
        padding: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   登录页面样式
   ========================================================================== */

body.login-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 2rem;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideUp 0.5s ease;
}

.login-header {
    margin-bottom: 2rem;
}

.login-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.login-header h1 i {
    color: var(--primary-color);
    font-size: 2rem;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.login-form {
    margin-bottom: 2rem;
}

.login-form .form-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.login-form .form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.login-form .form-group label i {
    margin-right: 0.5rem;
    color: var(--primary-color);
    width: 16px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--bg-tertiary);
    border-radius: var(--radius-medium);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
    -webkit-appearance: none;
    appearance: none;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
    transform: translateY(-1px);
}

.btn-block {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-medium);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-block:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-block:hover:before {
    left: 100%;
}

.btn-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3);
}

.login-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--bg-tertiary);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.back-link:hover {
    color: var(--primary-color);
    transform: translateX(-3px);
}

.back-link i {
    font-size: 0.875rem;
}

.alert-error {
    background: rgba(255, 59, 48, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(255, 59, 48, 0.2);
    padding: 1rem;
    border-radius: var(--radius-medium);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    animation: fadeIn 0.3s ease;
}

.alert-error i {
    font-size: 1rem;
}

/* 登录页面响应式设计 */
@media (max-width: 480px) {
    .login-container {
        padding: 1rem;
    }
    
    .login-card {
        padding: 2rem 1.5rem;
    }
    
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    .login-header h1 i {
        font-size: 1.75rem;
    }
}

/* 加载动画 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* 表单错误样式 */
.field-error {
    color: var(--danger-color);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.field-error::before {
    content: '⚠';
    font-size: 0.75rem;
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.1);
}

.form-group.focused input {
    border-color: var(--primary-color);
}

/* 提示消息容器样式 */
.alert-container .alert {
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    pointer-events: auto;
    max-width: 400px;
    word-wrap: break-word;
}

.alert-container .alert.show {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   仪表盘专门样式
   ========================================================================== */

/* 仪表盘内容区域 */
.dashboard-content {
    margin-top: 1.5rem;
}

.dashboard-content .row {
    margin-bottom: 1.5rem;
}

.dashboard-content .row:last-child {
    margin-bottom: 0;
}

/* 分类概览样式 */
.categories-overview {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    padding: 1rem 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-tertiary);
}

.categories-overview::-webkit-scrollbar {
    height: 6px;
}

.categories-overview::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.categories-overview::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.categories-overview::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.category-item {
    background: var(--bg-primary);
    border: 1px solid var(--bg-tertiary);
    border-radius: var(--radius-medium);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    min-width: 200px;
    max-width: 240px;
    flex-shrink: 0;
    text-align: center;
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.category-item:hover::before {
    transform: scaleX(1);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.category-info {
    flex: 1;
    width: 100%;
}

.category-info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.category-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0.25rem 0;
}

.category-actions {
    flex-shrink: 0;
    width: 100%;
}

.category-actions .btn {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    min-width: 64px;
    justify-content: center;
    gap: 0.3em;
    padding-left: 1em;
    padding-right: 1em;
}

/* 热门链接样式 */
.popular-links {
    max-height: 400px;
    overflow-y: auto;
    touch-action: auto;
    -webkit-overflow-scrolling: touch;
}

.popular-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--bg-tertiary);
    transition: var(--transition-fast);
    user-select: none;
    -webkit-user-select: none;
}

.popular-item:last-child {
    border-bottom: none;
}

.popular-item:hover {
    background: var(--bg-secondary);
    border-radius: var(--radius-small);
}

.popular-item .rank {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.popular-item .rank:nth-child(1) {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.popular-item:nth-child(2) .rank {
    background: linear-gradient(135deg, #C0C0C0, #A9A9A9);
}

/* 链接标题样式 */
.link-title {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.link-title:hover {
    color: #0056b3;
    text-decoration: underline;
}

.popular-item:nth-child(3) .rank {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
}

.popular-item .info {
    flex: 1;
}

.popular-item .name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.popular-item .clicks {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* 搜索关键词样式 */
.search-keywords {
    max-height: 400px;
    overflow-y: auto;
    touch-action: auto;
    -webkit-overflow-scrolling: touch;
}

.keyword-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--bg-tertiary);
    transition: var(--transition-fast);
    user-select: none;
    -webkit-user-select: none;
}

.keyword-item:last-child {
    border-bottom: none;
}

.keyword-item:hover {
    background: var(--bg-secondary);
    border-radius: var(--radius-small);
}

.keyword-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.keyword-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    word-break: break-word;
}

.keyword-text i {
    color: var(--info-color);
    font-size: 0.875rem;
    flex-shrink: 0;
}

.keyword-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.search-count {
    color: var(--success-color);
    font-weight: 500;
    background: rgba(40, 167, 69, 0.1);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-small);
}

.last-time {
    color: var(--text-secondary);
    font-style: italic;
}

/* 图表卡片样式 */
.chart-card {
    min-height: 400px;
}

.chart-card .card-body {
    padding: 1.5rem;
}

/* 统计数字样式（无动画） */
.stats-cards .card-content h3 {
    opacity: 1;
    transform: translateY(0);
}

/* 仪表盘响应式设计 */
@media (max-width: 768px) {
    .categories-overview {
        gap: 0.75rem;
        padding: 0.75rem 0;
    }
    
    .category-item {
        padding: 1rem;
        min-width: 160px;
        max-width: 180px;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .category-info h4 {
        font-size: 1rem;
    }
    
    .category-info p {
        font-size: 0.8rem;
    }
    
    .category-actions .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .popular-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .popular-item .rank {
        margin-bottom: 0.25rem;
    }
    
    .dashboard-content .row {
        flex-direction: column;
    }
    
    .dashboard-content .col-md-12,
    .dashboard-content .col-md-6,
    .dashboard-content .col-md-3 {
        width: 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    .keyword-item {
        padding: 0.5rem 0;
    }
    
    .keyword-text {
        font-size: 0.875rem;
    }
    
    .keyword-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .categories-overview {
        gap: 0.5rem;
    }
    
    .category-item {
        min-width: 140px;
        max-width: 160px;
        padding: 0.75rem;
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .category-info h4 {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    .category-info p {
        font-size: 0.75rem;
        margin: 0.125rem 0;
    }
}

/* 空状态样式优化 */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 2.5rem;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

.empty-state p {
    margin-bottom: 0;
}

.empty-state a {
    color: var(--primary-color);
    text-decoration: none;
}

.empty-state a:hover {
    text-decoration: underline;
}

/* 排行榜数字特效 */
.popular-item:first-child .rank {
    animation: pulse 2s infinite;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* 分类项悬停效果增强 */
.category-item:hover .category-icon {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3);
}

/* 渐变加载动画 */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

.loading-shimmer {
    animation: shimmer 1.2s ease-in-out infinite;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 400% 100%;
}

/* 分类概览的管理按钮样式优化 */
.category-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: var(--text-light);
    font-weight: 500;
    transition: var(--transition-fast);
}

.category-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.4);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* 热门链接排行榜前三名特殊样式 */
.popular-item:first-child .rank {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.popular-item:nth-child(2) .rank {
    background: linear-gradient(135deg, #C0C0C0, #A9A9A9);
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.3);
}

.popular-item:nth-child(3) .rank {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
    box-shadow: 0 4px 15px rgba(205, 127, 50, 0.3);
}

/* 统计卡片的图标动画效果 */
.stats-cards .card-icon i {
    transition: var(--transition-fast);
}

.stats-cards .card:hover .card-icon i {
    transform: scale(1.1);
}

/* 分类图标的渐变效果 */
.category-icon {
    position: relative;
    overflow: hidden;
}

.category-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-item:hover .category-icon::before {
    opacity: 1;
}

/* 表格行的悬停效果增强 */
.table tbody tr {
    transition: var(--transition-fast);
}

.table tbody tr:hover {
    background: var(--bg-secondary);
    transform: translateX(4px);
    box-shadow: var(--shadow-small);
}

/* 模态框动画增强 */
.modal.show .modal-content {
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 成功和错误提示的图标动画 */
.alert-success i {
    animation: successPulse 0.6s ease;
}

.alert-danger i {
    animation: errorShake 0.6s ease;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* 仪表盘数据加载状态 */
.dashboard-loading {
    opacity: 0.7;
    pointer-events: none;
}

.dashboard-loading .category-item {
    background: var(--bg-secondary);
    animation: shimmer 1.5s ease-in-out infinite;
}

/* 分类概览响应式优化 */
@media (max-width: 1200px) {
    .categories-overview {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 992px) {
    .categories-overview {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    .category-item {
        padding: 1rem;
        flex-direction: row;
        text-align: left;
    }
    
    .category-icon {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }
    
    .category-info h4 {
        font-size: 1rem;
    }
    
    .category-actions .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* 热门链接和数据显示优化 */
.popular-item .clicks {
    font-weight: 600;
    color: var(--text-primary);
}

.popular-item .rank {
    font-weight: 700;
    font-size: 1.125rem;
    min-width: 30px;
    text-align: center;
}

.popular-item .info .name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

/* 统计卡片数字格式化 */
.stats-cards .card-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.stats-cards .card-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

/* 分类概览数据格式化 */
.category-info p {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-weight: 500;
}

.category-info p i {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands';
    font-weight: 900;
    margin-right: 0.5rem;
    width: 14px;
    text-align: center;
}

/* 热门链接前三名动画优化 */
.popular-item:first-child .rank {
    animation: goldGlow 2s ease-in-out infinite alternate;
}

@keyframes goldGlow {
    0% {
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
        transform: scale(1.05);
    }
}

/* ==========================================================================
   常用导航相关样式
   ========================================================================== */

/* 复选框样式 */
.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-medium);
    border: 1px solid var(--bg-tertiary);
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
}

.checkbox-option:hover {
    background: var(--bg-primary);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-small);
}

.checkbox-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    opacity: 0;
    position: absolute;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: var(--bg-primary);
    border: 2px solid var(--bg-tertiary);
    border-radius: var(--radius-small);
    position: relative;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: var(--transition-fast);
}

.checkbox-option input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-option input[type="checkbox"]:checked + .checkmark::after {
    opacity: 1;
}

.label-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.label-text i {
    color: var(--warning-color);
    margin-right: 6px;
}

.label-text .form-text {
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* 徽章样式增强 */
.badge-success {
    background: linear-gradient(135deg, var(--success-color), #20c997);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.badge-secondary {
    background: linear-gradient(135deg, var(--text-secondary), #6c757d);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(134, 134, 139, 0.3);
}

.badge i {
    margin-right: 4px;
    font-size: 0.85em;
}

/* 表格列宽优化 */
.table th:nth-child(6), /* 常用列 */
.table td:nth-child(6) {
    width: 190px;
    /* text-align: center; */
}

/* 动画效果 */
@keyframes starTwinkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.badge-success i {
    animation: starTwinkle 2s infinite;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .checkbox-option {
        padding: 12px;
        gap: 10px;
    }
    
    .checkmark {
        width: 18px;
        height: 18px;
    }
    
    .checkmark::after {
        left: 5px;
        top: 1px;
        width: 5px;
        height: 9px;
    }
    
    .table th:nth-child(6),
    .table td:nth-child(6) {
        width: 70px;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
}

/* ==========================================================================
   Switch开关样式
   ========================================================================== */

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-tertiary);
    transition: var(--transition-fast);
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition-fast);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:focus + .slider {
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.switch-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.switch-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* 表格中的switch样式 */
.table .switch {
    width: 40px;
    height: 20px;
}

.table .slider:before {
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
}

.table input:checked + .slider:before {
    transform: translateX(20px);
}

/* 响应式 */
@media (max-width: 768px) {
    .switch-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .table .switch {
        width: 36px;
        height: 18px;
    }
    
    .table .slider:before {
        height: 12px;
        width: 12px;
    }
    
    .table input:checked + .slider:before {
        transform: translateX(18px);
    }
}

/* ==========================================================================
   图标选择器样式
   ========================================================================== */

/* 图标输入组 */
.icon-input-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.selected-icon-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    min-height: 56px;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.selected-icon-display:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.15);
    transform: translateY(-1px);
}

.selected-icon-display:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(74, 144, 226, 0.2);
}

.selected-icon-display i:first-child {
    font-size: 1.5rem;
    color: var(--primary-color);
    min-width: 24px;
    text-align: center;
    transition: all var(--transition-normal);
}

.selected-icon-display:hover i:first-child {
    transform: scale(1.1);
}

.icon-display-text {
    flex: 1;
    margin-left: var(--space-md);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.icon-display-text span {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
}

.icon-class-text {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    display: block;
    margin-top: 2px;
    font-family: 'SF Mono', 'Menlo', 'monospace';
    transition: var(--transition-fast);
}

.image-preview-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-medium);
    min-height: 64px;
}

#imagePreview {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: var(--radius-small);
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-small);
}

#imagePreviewText {
    color: var(--text-secondary);
    font-style: italic;
}

.icon-dropdown-arrow {
    margin-left: auto;
    color: var(--text-tertiary);
    transition: transform var(--transition-normal);
}

.selected-icon-display:hover .icon-dropdown-arrow {
    transform: translateY(2px);
}

/* 图标选择器模态框 */
.icon-search-box {
    margin-bottom: 1.5rem;
    position: relative;
}

.icon-search-box input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 2px solid var(--bg-tertiary);
    border-radius: var(--radius-large);
    font-size: 0.9rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-normal);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.icon-search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.icon-search-box input::placeholder {
    color: var(--text-tertiary);
    font-weight: 400;
}

.icon-search-box::before {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: 0.875rem;
    pointer-events: none;
    z-index: 1;
}

.icon-search-box input:focus + .icon-search-box::before,
.icon-search-box:focus-within::before {
    color: var(--primary-color);
}

.icon-categories {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.icon-category-btn {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.icon-category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.icon-category-btn:hover::before {
    left: 100%;
}

.icon-category-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.15);
}

.icon-category-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
    transform: translateY(-1px);
}

.icon-category-btn.active::before {
    display: none;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-md);
    max-height: 450px;
    overflow-y: auto;
    padding: var(--space-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-tertiary);
}

.icon-grid::-webkit-scrollbar {
    width: 8px;
}

.icon-grid::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.icon-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.icon-grid::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    min-height: 100px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.icon-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.icon-item:hover::before {
    left: 100%;
}

.icon-item:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3);
}

.icon-item:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.icon-item i {
    font-size: 1.8rem;
    margin-bottom: var(--space-sm);
    color: var(--primary-color);
    transition: all var(--transition-normal);
}

.icon-item:hover i {
    color: white;
    transform: scale(1.1);
}

.icon-item .icon-name {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
    transition: var(--transition-fast);
    line-height: 1.2;
}

.icon-item:hover .icon-name {
    color: white;
}

.icon-item .icon-class {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-family: 'Monaco', 'Consolas', monospace;
    opacity: 0.8;
    transition: var(--transition-fast);
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.icon-item:hover .icon-class {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .icon-input-group {
        gap: var(--space-xs);
    }
    
    .selected-icon-display {
        padding: var(--space-sm);
        min-height: 48px;
    }
    
    .selected-icon-display i:first-child {
        font-size: 1.3rem;
        min-width: 20px;
    }
    
    .icon-display-text {
        margin-left: var(--space-sm);
    }
    
    .icon-display-text span {
        font-size: 0.9rem;
    }
    
    .icon-class-text {
        font-size: 0.75rem;
        max-width: 150px;
    }
    
    .icon-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: var(--space-sm);
        padding: var(--space-sm);
        max-height: 350px;
    }
    
    .icon-item {
        min-height: 85px;
        padding: var(--space-sm);
    }
    
    .icon-item i {
        font-size: 1.5rem;
        margin-bottom: var(--space-xs);
    }
    
    .icon-item .icon-name {
        font-size: 0.8rem;
        margin-bottom: 3px;
    }
    
    .icon-item .icon-class {
        font-size: 0.65rem;
        padding: 1px 4px;
    }
    
    .icon-categories {
        gap: var(--space-xs);
    }
    
    .icon-category-btn {
        padding: var(--space-xs);
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .icon-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: var(--space-xs);
        padding: var(--space-xs);
        max-height: 300px;
    }
    
    .icon-item {
        min-height: 80px;
        padding: var(--space-xs);
    }
    
    .icon-item i {
        font-size: 1.4rem;
    }
    
    .icon-item .icon-name {
        font-size: 0.75rem;
    }
    
    .icon-item .icon-class {
        font-size: 0.6rem;
    }
    
    .selected-icon-display {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }
    
    .icon-display-text {
        margin-left: 0;
        width: 100%;
    }
    
    .icon-dropdown-arrow {
        align-self: flex-end;
    }
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
    .selected-icon-display {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .icon-grid {
        background: rgba(0, 0, 0, 0.2);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .icon-item {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .icon-search-box input {
        background: rgba(0, 0, 0, 0.1);
        color: #ffffff;
    }
}

/* ==========================================================================
   系统设置页面样式
   ========================================================================== */

.settings-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.settings-section {
    background: var(--bg-primary);
    border-radius: var(--radius-large);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-small);
    overflow: hidden;
    border: 1px solid var(--bg-tertiary);
}

.section-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--bg-tertiary);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header h2 i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

.settings-form {
    padding: 2rem;
}

.settings-form .form-group {
    margin-bottom: 1.5rem;
}

.settings-form .form-group:last-child {
    margin-bottom: 0;
}

.settings-form label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.settings-form input[type="text"],
.settings-form input[type="password"],
.settings-form input[type="file"],
.settings-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--bg-tertiary);
    border-radius: var(--radius-medium);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.settings-form input[type="text"]:focus,
.settings-form input[type="password"]:focus,
.settings-form input[type="file"]:focus,
.settings-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.settings-form small {
    display: block;
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.settings-form textarea {
    resize: vertical;
    min-height: 80px;
}

.settings-form input[type="file"] {
    padding: 0.5rem;
    border: 2px dashed var(--bg-tertiary);
    background: var(--bg-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.settings-form input[type="file"]:hover {
    border-color: var(--primary-color);
    background: rgba(0, 122, 255, 0.05);
}

.settings-form .btn {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-medium);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

/* Favicon 预览样式 */
.favicon-preview {
    padding: 1.5rem 2rem 0;
}

.current-favicon {
    background: var(--bg-secondary);
    border-radius: var(--radius-medium);
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.current-favicon h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.current-favicon img {
    border-radius: var(--radius-small);
    border: 1px solid var(--bg-tertiary);
    background: var(--bg-primary);
    padding: 0.5rem;
    margin-bottom: 0.75rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.current-favicon p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
    font-family: 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
}

/* 系统信息样式 */
.system-info {
    padding: 2rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--bg-tertiary);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    margin: 0;
}

.info-item span {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-family: 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
}

/* 消息提示样式 */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-medium);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
    color: var(--success-color);
}

.alert-error {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.2);
    color: var(--danger-color);
}

.alert i {
    font-size: 1.1rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .settings-container {
        padding: 0 0.5rem;
    }
    
    .section-header {
        padding: 1rem 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.1rem;
    }
    
    .settings-form {
        padding: 1.5rem;
    }
    
    .favicon-preview {
        padding: 1rem 1.5rem 0;
    }
    
    .current-favicon {
        padding: 1rem;
    }
    
    .system-info {
        padding: 1.5rem;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .info-item span {
        word-break: break-all;
    }
}

@media (max-width: 480px) {
    .settings-container {
        padding: 0;
        margin: 0 -1rem;
    }
    
    .settings-section {
        margin-bottom: 1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .section-header {
        padding: 1rem;
    }
    
    .settings-form {
        padding: 1rem;
    }
    
    .favicon-preview {
        padding: 0.5rem 1rem 0;
    }
    
    .system-info {
        padding: 1rem;
    }
}

/* 暗色模式适配 */
/*
@media (prefers-color-scheme: dark) {
    .settings-section {
        background: rgba(28, 28, 30, 0.9);
        border-color: rgba(99, 99, 102, 0.2);
    }
    
    .section-header {
        background: linear-gradient(135deg, rgba(44, 44, 46, 0.9) 0%, rgba(28, 28, 30, 0.9) 100%);
        border-color: rgba(99, 99, 102, 0.2);
    }
    
    .current-favicon {
        background: rgba(44, 44, 46, 0.9);
    }
    
    .current-favicon img {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(99, 99, 102, 0.3);
    }
    
    .settings-form input[type="text"],
    .settings-form input[type="password"],
    .settings-form input[type="file"],
    .settings-form textarea {
        background: rgba(44, 44, 46, 0.8);
        border-color: rgba(99, 99, 102, 0.3);
        color: #ffffff;
    }
    
    .settings-form input[type="file"] {
        background: rgba(44, 44, 46, 0.6);
        border-color: rgba(99, 99, 102, 0.3);
    }
    
    .info-item {
        border-color: rgba(99, 99, 102, 0.2);
    }
}
*/

.settings-container {
    display: grid;
    gap: 1.5rem;
}

/* ==========================================================================
   多分类选择器样式
   ========================================================================== */

.category-selector {
    position: relative;
    width: 100%;
}

.selected-categories {
    min-height: 44px;
    padding: 8px 12px;
    border: 2px solid var(--bg-tertiary);
    border-radius: var(--radius-medium);
    background: var(--bg-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    transition: var(--transition-fast);
    position: relative;
}

.selected-categories:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.selected-categories .placeholder {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.selected-categories .dropdown-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    transition: var(--transition-fast);
    font-size: 0.75rem;
}

.category-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-primary);
    border: 2px solid var(--bg-tertiary);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-large);
    max-height: 200px;
    overflow-y: auto;
    margin-top: 4px;
}

.category-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--bg-tertiary);
    margin: 0;
    font-weight: 400;
    color: var(--text-primary);
}

.category-option:last-child {
    border-bottom: none;
}

.category-option:hover {
    background: var(--bg-secondary);
}

.category-option input[type="checkbox"] {
    display: none;
}

.category-option .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--bg-tertiary);
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: var(--transition-fast);
}

.category-option .checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.category-option input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.category-option input[type="checkbox"]:checked + .checkmark::after {
    display: block;
}

.category-option .category-name {
    flex: 1;
    font-size: 0.875rem;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: var(--radius-small);
    font-size: 0.75rem;
    font-weight: 500;
    animation: tagSlideIn 0.2s ease;
}

.category-tag i {
    cursor: pointer;
    padding: 2px;
    border-radius: 2px;
    transition: var(--transition-fast);
    font-size: 0.625rem;
}

.category-tag i:hover {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes tagSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .selected-categories {
        min-height: 40px;
        padding: 6px 10px;
    }
    
    .category-option {
        padding: 10px 14px;
    }
    
    .category-option .checkmark {
        width: 16px;
        height: 16px;
        margin-right: 10px;
    }
    
    .category-option .checkmark::after {
        left: 4px;
        top: 1px;
        width: 3px;
        height: 7px;
    }
    
    .category-tag {
        padding: 3px 6px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .category-dropdown {
        max-height: 150px;
    }
    
    .category-option {
        padding: 8px 12px;
    }
    
    .category-tag {
        padding: 2px 5px;
        font-size: 0.65rem;
    }
}

/* 滚动条样式 */
.category-dropdown::-webkit-scrollbar {
    width: 6px;
}

.category-dropdown::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.category-dropdown::-webkit-scrollbar-thumb {
    background: var(--text-secondary);
    border-radius: 3px;
}

.category-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ==========================================================================
   分类显示样式
   ========================================================================== */

.category-display {
    display: flex;
    align-items: center;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--bg-tertiary);
    border-radius: var(--radius-small);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: var(--transition-fast);
}

.category-badge:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.category-count {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: var(--primary-light);
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-small);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.category-count:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-small);
}

.category-count i {
    font-size: 0.65rem;
    opacity: 0.8;
}

/* 分类弹窗样式 */
.modal-sm {
    max-width: 400px;
}

.category-modal-list {
    max-height: 300px;
    overflow-y: auto;
}

.category-modal-item {
    padding: 0.75rem;
    border-bottom: 1px solid var(--bg-tertiary);
    transition: var(--transition-fast);
}

.category-modal-item:last-child {
    border-bottom: none;
}

.category-modal-item:hover {
    background: var(--bg-secondary);
}

.category-item-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-item-content i {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--primary-color);
    background: var(--primary-light);
    border-radius: var(--radius-small);
}

.category-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
}

.empty-categories {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* 滚动条样式 */
.category-modal-list::-webkit-scrollbar {
    width: 6px;
}

.category-modal-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.category-modal-list::-webkit-scrollbar-thumb {
    background: var(--text-secondary);
    border-radius: 3px;
}

.category-modal-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modal-sm {
        max-width: 350px;
        margin: 1rem;
    }
    
    .category-modal-item {
        padding: 0.5rem;
    }
    
    .category-item-content {
        gap: 0.5rem;
    }
    
    .category-item-content i {
        width: 18px;
        height: 18px;
        font-size: 0.875rem;
    }
    
    .category-name {
        font-size: 0.8rem;
    }
    
    .category-count,
    .category-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 480px) {
    .modal-sm {
        max-width: 320px;
        margin: 0.5rem;
    }
    
    .category-modal-list {
        max-height: 250px;
    }
    
    .category-modal-item {
        padding: 0.4rem;
    }
    
    .category-count,
    .category-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.35rem;
    }
}

/* ==========================================================================
   分页样式
   ========================================================================== */

.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    padding: 1rem 0;
}

.pagination-nav {
    display: flex;
    align-items: center;
}

.pagination {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
    align-items: center;
}

.page-item {
    display: flex;
    align-items: center;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    margin: 0;
    text-decoration: none;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--bg-tertiary);
    border-radius: var(--radius-medium);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
    cursor: pointer;
    user-select: none;
}

.page-link:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-small);
}

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
    font-weight: 600;
    box-shadow: var(--shadow-medium);
}

.page-item.disabled .page-link {
    background: var(--bg-tertiary);
    border-color: var(--bg-tertiary);
    color: var(--text-tertiary);
    cursor: not-allowed;
    opacity: 0.6;
}

.page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
    background: var(--bg-tertiary);
    border-color: var(--bg-tertiary);
    color: var(--text-tertiary);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pagination {
        gap: 0.25rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-link {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 0.8rem;
    }

    .pagination-container {
        margin-top: 1.5rem;
        padding: 0.75rem 0;
    }
}

@media (max-width: 480px) {
    .page-link {
        min-width: 32px;
        height: 32px;
        padding: 0 6px;
        font-size: 0.75rem;
    }

    .pagination {
        gap: 0.2rem;
    }
}
